<!DOCTYPE html>
<html>
  <head>
    <title>Tempest // <?php echo Auth::user()->email; ?></title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
    <link href="css/home.css" rel="stylesheet" media="screen">
    <link href='http://fonts.googleapis.com/css?family=Bad+Script' rel='stylesheet' type='text/css'>

    <script type="text/javascript">
      var currentPage =
<?php
if (Session::has('currentPage')) {
  echo Session::get('currentPage');
} else {
  echo !isset($active) || (isset($active) && is_null($active)) ? 0 : $active->id;
}
?>;
  <?php if(isset($data)):?>
      var allData = <?php echo json_encode($data); ?>;
      <?php endif;?>
    </script>
  </head>
  <body>

    <script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-43648678-2', 'nder-tempest.appspot.com');
  ga('send', 'pageview');

</script>

    <div class="container-fluid">



      <!-- top nav bar -->
      <div class="navbar">
        <div class="navbar-inner">
          <a class="brand" href="/">Tempest</a>
          <ul class="nav">
            <li class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown">Tools <b class="caret"></b></a>
              <ul class="dropdown-menu">
                <li rel="addPage" role="presentation"><a href="#addTab" data-toggle="modal"><i class="icon-plus-sign"></i> Add tab</a></li>
                <li rel="addBlock" role="presentation"><a href="#addBlock" data-toggle="modal"><i class="icon-plus-sign"></i> Add block</a></li>
                <li rel="addLink" role="presentation"><a href="#addLink" data-toggle="modal"><i class="icon-plus-sign"></i> Add link</a></li>
                <li class="divider"></li>
                <li><a href="#" id="editMode"><i class="icon-wrench"></i> Edit mode</a></li>
              </ul>
            </li>
            <li class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown">Extra <b class="caret"></b></a>
              <ul class="dropdown-menu">
                <li rel="sendFeedback" role="presentation"><a href="/feedback"><i class="icon-envelope"></i> Send feedback</a></li>
                <!--<li rel="addBlock" role="presentation"><a href="#addBlock" data-toggle="modal"><i class="icon-plus-sign"></i> Add block</a></li>
                <li rel="addLink" role="presentation"><a href="#addLink" data-toggle="modal"><i class="icon-plus-sign"></i> Add link</a></li>
                <li class="divider"></li>
                <li><a href="#" id="editMode"><i class="icon-wrench"></i> Edit mode</a></li>>-->
              </ul>
            </li>
            <li class="divider-vertical"></li>
            <!-- pages hier -->
          </ul>
        </div>
      </div>

      <!-- flashes -->

      <?php if (Session::has('error')): ?>
        <div class="row-fluid">
          <div class="span12">
            <div class="alert alert-error">
              <button type="button" class="close" data-dismiss="alert">&times;</button>
              <strong>Error:</strong> <?php echo Session::get('error'); ?>
            </div>
          </div>
        </div>
      <?php endif; ?>

      <?php if (Session::has('warning')): ?>
        <div class="row-fluid">
          <div class="span12">
            <div class="alert alert-info">
              <button type="button" class="close" data-dismiss="alert">&times;</button>
              <strong>Idea:</strong> <?php echo Session::get('warning'); ?>
            </div>
          </div>
        </div>
      <?php endif; ?>

      <?php if (Session::has('success')): ?>
        <div class="row-fluid">
          <div class="span12">
            <div class="alert alert-success">
              <button type="button" class="close" data-dismiss="alert">&times;</button>
              <strong>OK</strong> <?php echo Session::get('success'); ?>
            </div>
          </div>
        </div>
      <?php endif; ?>
